package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;

/**
 * 20210522  zaq  导入,修改时间类型
 * asp_statement
 * @author 
 */
@Data
public class AspStatement implements Serializable {
    private boolean update;

    /**
     * 开始时间
     */
    private Integer startTime;

    /**
     * 结束时间
     */
    private Integer endTime;

    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;
    /**
     * id，主键
     */
    private Integer sId;

    /**
     * 金额
     */
    private Double sNumber;

    /**
     * 收入|支出
     */
    private Object sFlag;

    /**
     * 日期
     */
    private Integer sDate;

    /**
     * 时间
     */
    private String sTime;

    /**
     * 用途：水果、服饰、鞋帽
     */
    private String sKind;

    /**
     * 支付方式：支付宝、现金
     */
    private String sPay;

    /**
     * 备注
     */
    private String sText;

    /**
     * 删除标志，1为删除
     */
    private Boolean delete;

    /**
     * 用户ID
     */
    private Integer uId;

    /**
     * 账簿ID
     */
    private Integer bId;

    /**
     * 组别ID
     */
    private Integer gId;

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getsId() {
        return sId;
    }

    public boolean isUpdate() {
        return update;
    }

    public void setUpdate(boolean update) {
        this.update = update;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public Double getsNumber() {
        return sNumber;
    }

    public void setsNumber(Double sNumber) {
        this.sNumber = sNumber;
    }

    public Object getsFlag() {
        return sFlag;
    }

    public void setsFlag(Object sFlag) {
        this.sFlag = sFlag;
    }

    public Integer getsDate() {
        return sDate;
    }

    public void setsDate(Integer sDate) {
        this.sDate = sDate;
    }

    public String getsTime() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime = sTime;
    }

    public String getsKind() {
        return sKind;
    }

    public void setsKind(String sKind) {
        this.sKind = sKind;
    }

    public String getsPay() {
        return sPay;
    }

    public void setsPay(String sPay) {
        this.sPay = sPay;
    }

    public String getsText() {
        return sText;
    }

    public void setsText(String sText) {
        this.sText = sText;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public Integer getgId() {
        return gId;
    }

    public void setgId(Integer gId) {
        this.gId = gId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspStatement other = (AspStatement) that;
        return (this.getsId() == null ? other.getsId() == null : this.getsId().equals(other.getsId()))
            && (this.getsNumber() == null ? other.getsNumber() == null : this.getsNumber().equals(other.getsNumber()))
            && (this.getsFlag() == null ? other.getsFlag() == null : this.getsFlag().equals(other.getsFlag()))
            && (this.getsDate() == null ? other.getsDate() == null : this.getsDate().equals(other.getsDate()))
            && (this.getsTime() == null ? other.getsTime() == null : this.getsTime().equals(other.getsTime()))
            && (this.getsKind() == null ? other.getsKind() == null : this.getsKind().equals(other.getsKind()))
            && (this.getsPay() == null ? other.getsPay() == null : this.getsPay().equals(other.getsPay()))
            && (this.getsText() == null ? other.getsText() == null : this.getsText().equals(other.getsText()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getbId() == null ? other.getbId() == null : this.getbId().equals(other.getbId()))
            && (this.getgId() == null ? other.getgId() == null : this.getgId().equals(other.getgId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getsId() == null) ? 0 : getsId().hashCode());
        result = prime * result + ((getsNumber() == null) ? 0 : getsNumber().hashCode());
        result = prime * result + ((getsFlag() == null) ? 0 : getsFlag().hashCode());
        result = prime * result + ((getsDate() == null) ? 0 : getsDate().hashCode());
        result = prime * result + ((getsTime() == null) ? 0 : getsTime().hashCode());
        result = prime * result + ((getsKind() == null) ? 0 : getsKind().hashCode());
        result = prime * result + ((getsPay() == null) ? 0 : getsPay().hashCode());
        result = prime * result + ((getsText() == null) ? 0 : getsText().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getbId() == null) ? 0 : getbId().hashCode());
        result = prime * result + ((getgId() == null) ? 0 : getgId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspStatement{" +
                "update=" + update +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", note='" + note + '\'' +
                ", code=" + code +
                ", sId=" + sId +
                ", sNumber=" + sNumber +
                ", sFlag=" + sFlag +
                ", sDate=" + sDate +
                ", sTime='" + sTime + '\'' +
                ", sKind='" + sKind + '\'' +
                ", sPay='" + sPay + '\'' +
                ", sText='" + sText + '\'' +
                ", delete=" + delete +
                ", uId=" + uId +
                ", bId=" + bId +
                ", gId=" + gId +
                '}';
    }
}